//创建接口
interface IUser {
    uname: string
    age: number
    sayHi: () => void
}

//使用接口
let p1: IUser = {
    uname: 'Jack',
    age: 18,
    sayHi:() => {
        console.log("hello world")
    }
}